package com.qy127.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
* @author Lei Chu
* @Date 2020/10/16 18:04
*/

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Menu implements Serializable {

  private Integer mid;
  private String mname;
  private String mcode;
  private String murl;
  private Integer mpid;
  private String micon;
  //父菜单中有子菜单
  private List<Menu> sonMenu;

  public Menu(Integer mid, String mname, String murl, List<Menu> sonMenu) {
    this.mid = mid;
    this.mname = mname;
    this.murl = murl;
    this.sonMenu = sonMenu;
  }

  public Menu(Integer mid, String mname, String murl) {
    this.mid = mid;
    this.mname = mname;
    this.murl = murl;
  }
}
